package com.ctrip.corp.obt.shard.constants;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.regex.Pattern;

/**
 * 掩码更新拦截相关常量
 * 
 * @author xukang zhang
 * @date 2023/8/30 20:30
 */
public class MaskConstants {
    public static final Pattern MASK_PATTERN = Pattern.compile("^.*\\*+.*$");

    public static final Set<String> DEFAULT_DESENSITIZATION_NAMES =
        new HashSet<>(
            Arrays.asList("mobilePhone", "phone", "phoneNum", "contactPhone", "empMobilePhone", "idCard", "cardNo",
                "creditCardNumbers", "ffpno", "certificateNumber", "address", "email", "contactEmail", "empEmail"));

    public static final Set<String> DEFAULT_WHITE_LIST_NAMES =
            new HashSet<>(
                    Arrays.asList("tips"));
}
